<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查询订单</title>
<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/css/chax.css" />
</head>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/chaxStu.js"></script>
<body>
	<hr>
	<b>&nbsp;&nbsp;订单内容列表</b>
	<hr>
	<!--添加列表-->
	<div>
		<a href="${pageContext.request.contextPath }/admin/addRepair.jsp"><button class="but">
				<font>添加记录</font>
			</button></a>&nbsp;&nbsp; 
			<div style="margin-top: -40px; margin-left: 100px">
			<form action="findRepair" method="post" id="fsub">
				<input type="text" name="xname" class="tex" placeholder="请输入搜索关键字" />
				<input type="hidden" id="pageNo" name="pageNo"/>
				<button class="but2"><font>搜索</font></button>&nbsp;&nbsp;
			</form>
		</div>
		</form>
		&nbsp;&nbsp;
	</div>
	<hr />

	<table class="table table-hover">
		<thead>
			<tr>
				<th>订单编号</th>
				<th>客户姓名</th>
				<th>电话号码</th>
				<th>车型</th>
				<th>车牌号</th>
				<th>服务时间</th>
				<th>时长</th>
				<th>服务类型</th>
				<th>服务人员</th>
				<th>费用</th>
				<th>提车时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<s:iterator value="#request.rep.list" id="rep">
			<tr>
				<td>${repairId}</td>
				<td>${repairName}</td>
				<td>${repairPhone}</td>
				<td>${car.cname}</td>
				<td>${repairBrand}</td>
				<td>${repairBtime}</td>
				<td>${repairTime}</td>
				<td>${bservice.bserviceName}</td>
				<td>${repairPerson}</td>
				<td>${repairMoney}</td>
				<td>${repairEtime}</td>
				<td>
					<div class="btn-group">
						<a href="findupdateRepair?repairId=${repairId}"><button type="button" class="btn btn-default"
							style="border: 1px solid #31B0D5; color: #31B0D5;">修改</button></a>
						<a href="deleteRepair?repairId=${repairId}"><button type="button" class="btn btn-default"
							style="border: 1px solid #D43F3A; color: #D43F3A;">删除</button></a>
					</div>
				</td>
			</tr>
			</s:iterator>
			<s:set name="page" value="#request.page"></s:set>
			<tr>
				<td colspan="13">
				当前是第${pageNo}页，共${sumPage}页
				</td>
			</tr>
		</tbody>
	</table>
	<div class="btn-group" style="margin-left: 350px">
		<a href="javascript:pageModel(${pm.index})"><button type="button" id="start" class="btn btn-default">首页</button></a>
		<a href="javascript:pageModel(${pm.prev})"><button type="button" id="pageS" class="btn btn-default">上一页</button></a>
		<a href="javascript:pageModel(${pm.next})"><button type="button" id="pageX" class="btn btn-default">下一页</button></a>
		<a href="javascript:pageModel(${pm.sumPage})"><button type="button" id="end" class="btn btn-default">尾页</button></a>
	</div>
	<script type="text/javascript">
		function pageModel(pageNo){
			$("#pageNo").val(pageNo);
			$("#fsub").submit();
		}
</script>
</body>

</html>